package IO;

import java.io.IOException;
import java.io.PrintStream;
import java.io.Closeable;

public class Escritor implements Closeable{

	private PrintStream out;
	
	public Escritor(String file) throws IOException{
		out = new PrintStream(file);
	}
	
	public void escrever(String msg){
		out.println(msg);
	}
	
	public void close(){
		System.out.println("fechando recurso");
		out.close();
	}
	
}
